//
//  NSData+AES128.h
//  Broadlink
//
//  Created by vbn on 2018/1/21.
//  Copyright © 2018年 vbn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCryptor.h>

@interface NSData (KNAES128)


/**
 aes 128 加密 ，cbc模式，无填充
 */
- (NSData *)KNAES128EncryptNoPaddingWithCBCModelWithKey:(NSString *)key iv:(NSString *)iv;

/**
 aes 128 解密 ，cbc模式，无填充
 */
- (NSData *)KNAES128DecryptNoPaddingWithCBCModelWithKey:(NSString *)key iv:(NSString *)iv;


@end
